export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 菜单列表
export interface Menu {
  id?: string | number
  pid: string | number
  createTime?: string
  updateTime?: string
  name: string
  code: string
  level: string | number
  children?: MenuList
  select?: boolean
}

export type MenuList = Menu[]

export interface MenuListResponseData extends ResponseData {
  data: MenuList
}

// 菜单参数
export interface MenuParams {
  id?: number
  pid: number
  name: string
  code: string
  level: number
}
